intdiv
Round the division result
intdiv()
function is used to perform integer division operation.
Perform several integer division operations:
<?php echo intdiv ( 8 , 4 ) ; echo intdiv ( 5 , 2 ) ; echo intdiv ( - 5 , - 2 ) ; ?>
Run the instance
intdiv ( dividend , divisor ) ;
parameter | describe |
---|---|
divide | Required. Specifies the number to be divided. |
divisor | Required. Specifies the number used to divide the divisor. |